import { request } from '@/api/_service'

// 查询umsAdmin列表
export function LIST (data) {
  return request({
    url: '/umsAdmin/list',
    method: 'get',
    params: data
  })
}

// 分页查询umsAdmin列表
export function PAGE (data) {
  return request({
    url: '/umsAdmin/page',
    method: 'get',
    params: data
  })
}

// 查询umsAdmin
export function GET (data) {
  return request({
    url: '/umsAdmin/' + data,
    method: 'get'
  })
}

// 新增umsAdmin
export function ADD (data) {
  return request({
    url: '/umsAdmin',
    method: 'post',
    data: data
  })
}

// 修改umsAdmin
export function UPDATE (data) {
  return request({
    url: '/umsAdmin',
    method: 'put',
    data: data
  })
}

// 删除umsAdmin
export function DELETE (data) {
  return request({
    url: '/umsAdmin/delete/' + data,
    method: 'delete'
  })
}

export default {
  LIST,
  PAGE,
  GET,
  ADD,
  UPDATE,
  DELETE
}
